import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index";
import store from "./store/index";
import axios from "./http/requst";
import "element-plus/dist/index.css";
import ElementPlus from "element-plus";
import {
  Button,
  Loading,
  Uploader,
  Toast,
  Area,
  Switch,
  ImagePreview,
  DatePicker,
  TimePicker,
  Progress,
  Field,
  Slider,
  Popup,
  TextEllipsis,
  Dialog,
  Picker,
  Swipe,
  Popover,
  SwipeItem,
  NoticeBar,
} from "vant";
import $ from "jquery";
import "./assets/icon/iconfont.css";
import converData from "./utils/converData";
// import VConsole from "vconsole";
// const vConsole = new VConsole();

import less from "less";
import "vant/lib/index.css";
const app = createApp(App);
app.use(Button);
app.use(Area);
app.use(Popup);
app.use(Popover);
app.use(Field);
app.use(NoticeBar);
app.use(Picker);
app.use(Switch);
app.use(DatePicker);
app.use(Dialog);
app.use(TimePicker);
app.use(TextEllipsis);
app.use(Toast);
app.use(Swipe);
app.use(ImagePreview);
app.use(SwipeItem);
app.use(Slider);
app.use(Loading);
app.use(Uploader);
app.use(Progress);
app.use(less);
app.config.globalProperties.$ = $;
app.config.globalProperties.$converData = converData;
app.config.globalProperties.apis = "https://cxy.localbird.cn";
app.config.globalProperties.ossSrc =
  "?x-oss-process=image/format,jpg/quality,q_50";

app.config.globalProperties.$docHeight = document.documentElement.clientHeight;
app.config.globalProperties.$docWidth = document.documentElement.clientWidth;
app.config.globalProperties.$axios = axios;
app.use(router).use(ElementPlus).use(store).mount("#app");
